package com.walter.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 系统参数表
 * </p>
 *
 * @author ch
 * @since 2021-05-25
 */
@Data
@Accessors(chain = true)
@TableName("sys_param")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "系统参数表", subTypes = {Param.class})
public class Param extends Model<Param> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键,非自增")
    private String key;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "描述说明")
    private String desc;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "是否必须填value,yes/no")
    @TableField("is_need")
    private String isNeed;


    public static final String KEY = "key";

    public static final String VALUE = "value";

    public static final String DESC = "desc";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_NEED = "is_need";

    @Override
    protected Serializable pkVal() {
        return this.key;
    }

}
